Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities


Setting Up Transformation Matrices

QuickDraw 3D provides routines that you can use to configure matrices to be used as geometric transformations. You must already have allocated the memory for a matrix before calling one of these routines.

All functions operating on 3-by-3 matrices assume that the resulting transform matrices are to be used to transform only homogeneous two-dimensional data types (such as TQ3RationalPoint3D). Similarly, all functions operating on 4-by-4 matrices assume that the resulting transform matrices are to be used to transform only homogeneous three-dimensional data types (such as TQ3RationalPoint4D).

You specify an angle (for example, for Q3Matrix3x3_SetRotateAboutPoint) by passing a value that is interpreted in radians. If you prefer to use degrees, QuickDraw 3D provides C language macros that convert radians into degrees.


Subtopics
Q3Matrix3x3_SetTranslate
Q3Matrix3x3_SetScale
Q3Matrix3x3_SetRotateAboutPoint
Q3Matrix4x4_SetTranslate
Q3Matrix4x4_SetScale
Q3Matrix4x4_SetRotateAboutPoint
Q3Matrix4x4_SetRotateAboutAxis
Q3Matrix4x4_SetRotate_X
Q3Matrix4x4_SetRotate_Y
Q3Matrix4x4_SetRotate_Z
Q3Matrix4x4_SetRotate_XYZ
Q3Matrix4x4_SetRotateVectorToVector
Q3Matrix4x4_SetQuaternion

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996